package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the per_tng_xks database table.
 * l
 */
@Entity
@Table(name="per_tng_xks")
@NamedQuery(name="PerTngXks.findAll", query="SELECT p FROM PerTngXks p")
public class PerTngXks implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PER_TNG_XKS_XKSID_GENERATOR", sequenceName="SEQ1",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PER_TNG_XKS_XKSID_GENERATOR")
	private int xksid;

	//bi-directional many-to-one association to PerTngPojs
	@ManyToOne
	@JoinColumn(name="POJSID")
	private PerTngPojs perTngPoj;

	//bi-directional many-to-one association to PerTngRus
	@ManyToOne
	@JoinColumn(name="RUSID")
	private PerTngRus perTngRus;

	public PerTngXks() {
	}

	public int getXksid() {
		return this.xksid;
	}

	public void setXksid(int xksid) {
		this.xksid = xksid;
	}

	public PerTngPojs getPerTngPoj() {
		return this.perTngPoj;
	}

	public void setPerTngPoj(PerTngPojs perTngPoj) {
		this.perTngPoj = perTngPoj;
	}

	public PerTngRus getPerTngRus() {
		return this.perTngRus;
	}

	public void setPerTngRus(PerTngRus perTngRus) {
		this.perTngRus = perTngRus;
	}

}